<%#

This file is part of Diligence

Copyright 2011-2015 Three Crickets LLC.

The contents of this file are subject to the terms of the LGPL version 3.0:
http://www.gnu.org/copyleft/lesser.html

Alternatively, you can obtain a royalty free commercial license with less
limitations, transferable or non-transferable, directly from Three Crickets
at http://threecrickets.com/

%><%

document.require('/diligence/feature/wiki/')

var page = Diligence.Wiki.getPage(conversation)

if (page) {
	var template = page.getTemplate() || 'default'
%>
<div class="page page-<%= template %>">
<% try { %>
	<%& '/diligence/feature/wiki/page/template/' + template + '/' %>
<% } catch(x) {} %>
</div>
<%
}
%>
